package cn.tedu.medicalappointmentsystemk.dao.persist.mapper;

import cn.tedu.medicalappointmentsystemk.pojo.bo.DepartmentSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.DepartmentPO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.DepartmentSelectDoctorVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<DepartmentPO> {
    List<DepartmentSelectDoctorVO> selectDoctorByDepartmentId(Long id);

    List<DepartmentPO> selectLevel(Long id);

    Page<DepartmentSelectBO> selectDepartment();

    Page<DepartmentSelectBO> searchLastWeek();

    Page<DepartmentSelectBO> searchLastMonth();

    Page<DepartmentSelectBO> searchToday();

    List<DepartmentSelectBO> departmentSelectByName(String name);
}
